package com.cakemallproject.service.impl;

import com.cakemallproject.mapper.OrderItemMapper;
import com.cakemallproject.pojo.mapperObj.OrderItem;
import com.cakemallproject.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Autowired
    private OrderItemMapper orderItemMapper;

    @Override
    public List<OrderItem> list() {
        return orderItemMapper.list();
    }

    @Override
    public void insert(OrderItem orderItem) {
        orderItemMapper.insert(orderItem);
    }

    @Override
    public List<OrderItem> getByOid(Integer oid) {
        return orderItemMapper.getByOid(oid);
    }
}
